<template>
  <div class="dashboard-container">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->

    <el-row :gutter="20">
      <el-col :span="18"><div class=" bg-purple" />
        <div class="top">
          <div class="banner-left">
            <img src="	http://www-wms-java.itheima.net/img/dashboard-banner-left@2x.5afd2949.png" alt="" class="left">
            <img src="	http://www-wms-java.itheima.net/img/dashboard-banner-right@2x.28195570.png" alt="" class="right">
            <img src="http://www-wms-java.itheima.net/img/avatar@2x.4f4a758f.png" alt="" class="photo">
            <p class="user-title">仓储管理员</p>
            <p class="sentence">我不是为了输赢，我就是认真！</p>
            <p class="luoyonghao">———罗永浩</p>
            <div class="location">北京总仓</div>
          </div>
        </div>
        <div class="bottom margin-top10 Agency-information">
          <span style="width:100%">待办信息</span>
          <div type="flex">
            <span>1</span>
            <span>1</span>
            <span>1</span>
          </div>
        </div>
      </el-col>
      <el-col :span="6"><div class=" one">
        <div class="banner-right">
          <div class="notice">通知/公告</div>
          <div class="item">
            <div class="item-title">紧急盘点通知</div>
            <div class="time">2020.12.30 18:23:14</div>
          </div>
          <div class="item">
            <div class="item-title">运维服务更新通知</div>
            <div class="time">2021.01.25 18:23:14</div>
          </div>
          <div class="item">
            <div class="item-title">客户入库变更通知</div>
            <div class="time">2021.01.26 18:23:14</div>
          </div>
          <div class="item">
            <div class="item-title">五一放假通知</div>
            <div class="time">2021.02.15 18:23:14</div>
          </div>
          <div class="item">
            <div class="item-title">品达物流系统对接通知</div>
            <div class="time">2021.3.25 18:23:14</div>
          </div>
        </div>
      </div></el-col>
    </el-row>
    <el-row :gutter="20" class=" margin-top10">
      <el-col :span="24"><div class="grid-content bg-purple two">任务导航</div></el-col>
    </el-row>
    <el-row :gutter="20" class=" margin-top10">
      <el-col :span="24"><div class="grid-content bg-purple three">入库/出库信息</div></el-col>
    </el-row>
    <el-row :gutter="20" class=" margin-top10">
      <el-col :span="6"><div class="grid-content bg-purple four">库存使用情况</div></el-col>
      <el-col :span="18"><div class="grid-content bg-purple four">库区使用情况</div></el-col>
    </el-row>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

.top {
  height: 153px;
  background-color: pink;
  box-shadow: 0 0/ 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
}
.bottom {
  height: 287px;
  background-color: pink;
  box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
}

.margin-left-10 {
  margin-left: -10px;
}
.margin-top10 {
  margin-top: 10px !important;
}
.one {
  height: 450px;
}
.two {
  height: 188px;
}
.three {
  height: 500px;
}
.four {
  height: 345px;
}

// from-洋洋
.banner-left {
      position: relative;
      width: 100%;
      height: 100%;
      background: linear-gradient(270deg,#ffc771,#ffa634);
      border-radius: 12px;
      .left {
        width: 166px;
        height: 148px;
      }
      .right {
      position: absolute;
      width: 426px;
      height: 100%;
      top: 0;
      right: 0;
      }
      .photo {
        position: absolute;
        top: 31px;
        left: 43px;
        height: 62px;
      }
      .user-title {
        position: absolute;
        left: 36px;
        bottom: 0px;
        font-size: 16px;
        font-weight: 500;
        color: #332929;
        line-height: 22px;
      }
      .sentence {
        position: absolute;
        font-weight: 500;
        color: #fff;
        line-height: 25px;
        top: 20px;
        left: 200px;
        font-size: 18px;
      }
      .luoyonghao {
        position: absolute;
        top: 66px;
        left: 400px;
        font-size: 16px;
        color: #fff;
      }
      .location {
        position: absolute;
        background-color: #f8f5f5;
        opacity: .79;
        border-radius: 6px;
        width: 147px;
        height: 40px;
        top: 20px;
        right: 20px;
        text-align: center;
        line-height: 40px;
      }
  }
.banner-right {
      // width: 261px;
      height: 450px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 30px;
      // margin-left: 30px;
      .notice {
        font-size: 16px;
        font-weight: 600;
        color: #332929;
        line-height: 22px;

      }
      .item {
        display: flex;
        width: 200px;
        height: 60px;
        border-top: 1px solid #f5efee;
        margin-top: 15px;
        flex-direction: column;
        justify-content: center;
        justify-content:space-evenly;
        .item-title {
          width: 195px;
          height: 18px;
          font-size: 13px;
          font-weight: 400;
          color: #332929;
          line-height: 18px;
          margin-top: 15px;
        }
        .time {
          width: 115px;
          height: 17px;
          font-size: 12px;
          font-weight: 400;
          color: #887e7e;
          line-height: 17px;
          margin-top: 10px;
        }
      }
  }
// /from-洋洋

.Agency-information {
  padding: 25px;

  span {
    font-size: 16px;
    font-family: PingFangSC-Semibold,PingFang SC;
    font-weight: 600;
    color: #332929;
    line-height: 22px;
  }
}
.el-row {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: pink;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    min-height: 36px;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
